package individual.ircon.bilibili.ui;

import javafx.beans.property.LongProperty;
import javafx.beans.property.SimpleLongProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

/**
 * 抽奖界面的数据Bean。
 */
public class Shortlist {
    private LongProperty UserID = new SimpleLongProperty();
    private StringProperty UserName = new SimpleStringProperty();

    public Shortlist(LongProperty userID, StringProperty userName) {
        UserID = userID;
        UserName = userName;
    }
    public Shortlist(long userID, String userName) {
        UserID.set(userID);
        UserName.setValue(userName);
    }

    public long getUserID() {
        return UserID.get();
    }

    public LongProperty userIDProperty() {
        return UserID;
    }

    public void setUserID(long userID) {
        this.UserID.set(userID);
    }

    public String getUserName() {
        return UserName.get();
    }

    public StringProperty userNameProperty() {
        return UserName;
    }

    public void setUserName(String userName) {
        this.UserName.set(userName);
    }
}
